﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="SingleCompany.aspx.cs" Inherits="SingleCompany" EnableViewState="false" %>

<%@ MasterType VirtualPath="~/Site.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script src="fancybox/jquery.fancybox.js" type="text/javascript"></script>
    <link href="fancybox/jquery.fancybox.css" rel="stylesheet" type="text/css" />
    <link href="fancybox/jquery.fancybox-1.3.4.css" rel="stylesheet" type="text/css" />
    <script src="fancybox/helpers/jquery.fancybox-thumbs.js" type="text/javascript"></script>
    <link href="fancybox/helpers/jquery.fancybox-thumbs.css" rel="stylesheet" type="text/css" />
    <script src="fancybox/jquery.fancybox-1.3.4.pack.js" type="text/javascript"></script>
    <script src="scripts/jquery.MultiFile.js" type="text/javascript"></script>
    <script src="scripts/geokbd.js" type="text/javascript"></script>
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=AIzaSyAXIYBJQ5vJnwe4JhbjSpq7gjEVWTNnDrg"
        type="text/javascript"></script>
    <script type="text/javascript">
        var cRating = new Object();
        cRating.rating = 0;
        function setRating() {
            jQuery('#mainn').css('background-position', ("0px -" + (5 - cRating.rating) * 18 + "px"));
        }
        function setTempRating(number) {
            jQuery('#mainn').css('background-position', ("0px -" + (5 - number) * 18 + "px"));
        }
        function saveRating(number) {
            jQuery('.rating').attr('onmouseout', 'setRating(\'' + number + '\')');
            cRating.rating = number;
        }

        var company = new Object();
        function initCompany(id, title, descr, url, images) {
            company.id = id;
            company.title = title;
            company.descr = descr;
            company.url = url;
            company.images = images;
        }

        function shareCompany() {
            window.open('http://www.facebook.com/sharer.php?s=100&p[title]=' + company.title + '&p[summary]=' + company.descr +
            '&p[url]=' + company.url + '&p[images][0]=' + company.images + '', 'sharer', 'toolbar=0,status=0,width=580,height=325');
        }
        $(document).ready(function () {
            $('a[name=review-share]').live('click',
            function shareReview() {
                var par = $(this).parent().parent();
                var title = par.find('h4').find('a').text() + ' → ' + company.title;
                var descr = '';
                var url = 'http://revio.ge?singlecompany.aspx?id=' + $(this).attr('id');
                var images = 'http://revio.ge/images/no-avatar.jpeg';
                window.open('http://www.facebook.com/sharer.php?s=100&p[title]=' + title + '&p[summary]=' + descr +
            '&p[url]=' + url + '&p[images][0]=' + images + '', 'sharer', 'toolbar=0,status=0,width=580,height=325');
            });
            GeoKBD.map('form1', 'ReviewText');// ქართული კლავიატურა.
        });
    </script>
    <script src="scripts/singlecompany.js?<%= DateTime.Now.Ticks %>" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <tr>
        <td>
            <div class="all_content">
                <div class="content">
                    <div class="content-top">
                        <div class="content-bottom">
                            <div class="content-center">
                                <div class="compay_single_page">
                                    <div class="compsingl_left">
                                        <div class="comp_rev">
                                            <div class="comp_about">
                                                <div class="comp_img">
                                                    <img id="CompanyLogo" runat="server" alt="" src="" width="80" height="35" /></div>
                                                <h2 id="CompanyName" runat="server">
                                                </h2>
                                                <div style="float: left;">
                                                    <div class="rating-empty-big">
                                                        <div id="rateing" style="position: relative; float: left;" runat="server" class="rating-full-big">
                                                        </div>
                                                    </div>
                                                    <a id="fb-share" style='text-decoration: none;' type="icon_link" onclick="shareCompany();"
                                                        href="javascript: void(0)">
                                                        <img src="images/fbshare.jpg" alt="Share" />
                                                    </a>
                                                </div>
                                                <div class="clear">
                                                </div>
                                                <span>კატეგორიები:</span> <span id="CateoriesList" runat="server" class="catg_list">
                                                </span>
                                                <br />
                                                <asp:Literal ID="litAddressOptions" runat="server" />
                                                <span>ვებ-გვერდი:</span> <a id="CompanyWebsite" target="_blank" href="#" runat="server"
                                                    class="catg_list_web_adress"></a>
                                                <div class="clear">
                                                </div>
                                                <div class="hours">
                                                    საათები<br />
                                                    <span id="HourFrom" runat="server"></span>
                                                    <br />
                                                    <span id="HourTo" runat="server"></span>
                                                </div>
                                                <div class="price">
                                                    ფასების დიაპაზონი:
                                                    <asp:Literal ID="PriceFrom" runat="server" />
                                                    -
                                                    <asp:Literal ID="PriceTo" runat="server" /><br />
                                                    მიიღება ბარათით:
                                                    <asp:Literal ID="AcceptCreditCard" runat="server" />
                                                </div>
                                            </div>
                                            <div class="comp_photo">
                                                <asp:Literal ID="CompanyGallery" runat="server"></asp:Literal>
                                                <div class="parking">
                                                    <b>Wifi:</b>
                                                    <asp:Literal ID="IsWiFi" runat="server" />
                                                </div>
                                            </div>
                                        </div>
                                        <asp:PlaceHolder ID="CompanyCreator" runat="server" Visible="false">
                                            <div class="comp_creator">
                                                <div class="prof_bg">
                                                    <img alt="Creator" id="CompanyOwnerAvatar" runat="server" src="images/no-avatar.jpeg"
                                                        width="25" height="25" /></div>
                                                <div class="prof_info">
                                                    <h3>
                                                        <a id="CompanyOwner" runat="server" href="#">რევიოს ადმინისტრაცია</a>
                                                    </h3>
                                                    <span><a href="#">პირველი შემფასებელი</a></span>
                                                </div>
                                                <a id="EditCompany" runat="server" class="edit_link" href="#">რედაქტირება </a><a
                                                    id="IsVerifiedInfo" runat="server" class="info_verifide" href="javascript:void">
                                                    ინფორმაცია დამოწმებულია</a>
                                            </div>
                                        </asp:PlaceHolder>
                                        <div class="rev_people">
                                            <span class="span_rev">განხილვები</span> <span class="span_revpeop">
                                                <asp:Literal ID="ReviewsCount" runat="server"></asp:Literal>განხილვა</span>
                                        </div>
                                        <div id="mainn" clientidmode="Static" runat="server" style="margin-right: 0px; margin-bottom: 5px;
                                            background-position: 0px -90px;">
                                            <div class="rating" onmouseover="setTempRating('1')" onclick="saveRating('1');" onmouseout="setRating('1')">
                                            </div>
                                            <div class="rating" onmouseover="setTempRating('2')" onclick="saveRating('2');" onmouseout="setRating('1')">
                                            </div>
                                            <div class="rating" onmouseover="setTempRating('3')" onclick="saveRating('3');" onmouseout="setRating('1')">
                                            </div>
                                            <div class="rating" onmouseover="setTempRating('4')" onclick="saveRating('4');" onmouseout="setRating('1')">
                                            </div>
                                            <div class="rating" onmouseover="setTempRating('5')" onclick="saveRating('5');" onmouseout="setRating('1')">
                                            </div>
                                        </div>
                                        <asp:PlaceHolder ID="AddReviewPlace" runat="server">
                                            <div class="mind">
                                                <div class="img_mind">
                                                </div>
                                                <div class="text_mind">
                                                    <textarea id="ReviewText" runat="server" style="color: #a8a8a8; height: 40px; width: 496px;
                                                        resize: none;" onfocus="checkBeforeWriteReview(this)" onclick="if(this.value=='რა მოგწონთ, ან რა არ მოგწონთ ამ ობიექტზე?') this.value='';"
                                                        onblur="if(this.value=='') this.value='რა მოგწონთ, ან რა არ მოგწონთ ამ ობიექტზე?'">რა მოგწონთ, ან რა არ მოგწონთ ამ ობიექტზე?</textarea>
                                                </div>
                                                <div class="total_score">
                                                    <a id="showUploader" class="puls_attch" href="#">ატვირთე სურათები</a> <span id="spanMin">
                                                        მინ.</span> <a id="symbolsq" class="" href="#">30</a> <span id="symbolt">სიმბოლო</span>
                                                    <br />
                                                    <div class="score_txt" style="display: none">
                                                        <div class="clear">
                                                        </div>
                                                        <div class="attch_file">
                                                            <div>
                                                                <asp:FileUpload ID="AttachedFiles" class="multi" runat="server" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="score">
                                                        <div class="button_b">
                                                            <div class="coner_left">
                                                            </div>
                                                            <div class="center_px">
                                                                <asp:Button ID="Submit" ClientIDMode="Static" Text="დაამატე" CssClass="score_submit"
                                                                    runat="server" OnClick="OnSubmit" />
                                                            </div>
                                                            <div class="coner_right">
                                                            </div>
                                                            <div class="clear">
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:PlaceHolder>
                                        <div class="mind">
                                            <asp:Repeater ID="ReviewItemsRep" runat="server" OnItemDataBound="ReviewItemsRep_ItemDataBound">
                                                <ItemTemplate>
                                                    <asp:Literal ID="LitReviewItem" runat="server" />
                                                </ItemTemplate>
                                            </asp:Repeater>
                                            <div class="clear">
                                            </div>
                                            <div class="mind_line">
                                            </div>
                                        </div>
                                        <div class="pagenation">
                                            <asp:PlaceHolder ID="pages" runat="server"></asp:PlaceHolder>
                                        </div>
                                    </div>
                                    <div class="compsingl_right">
                                        <div class="compnews_top">
                                            რუკა
                                        </div>
                                        <!--compnews_top-->
                                        <div id="map_div" runat="server" class="news_box">
                                        </div>
                                        <div class="compnews_top">
                                            მსგავსი კომპანიები
                                        </div>
                                        <div class="relat_comp">
                                            <asp:Literal ID="LitRelatedComp" runat="server" />
                                            <asp:HiddenField ID="HidnField" runat="server" Value="" />
                                            <asp:Literal ID="Script" runat="server" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </td>
    </tr>
</asp:Content>
